———————————————————————————中文————————————————————————————

欢迎使用 mbit “扬声器” 模块
本模块提供了共 16M 的存储空间，可以存储并播放 MP3 格式的音频文件。

如何使用？
1. 连接模块至电脑
使用 Micro USB 数据线连接扬声器模块（Mirco USB 接口）至电脑（USB-typeA 接口）。连接成功后，电脑将显示模块磁盘，打开磁盘即可查看模块包含的文件。

2. 存储自定义音频
将您想要播放的音频文件拖到模块磁盘即可。
注意：模块存储空间有限，若音频文件过大，将无法存储，建议您压缩文件大小，再重新尝试。

3. 修改自定义音频文件名【重要】
由于硬件限制，本模块只能通过音频文件名的前四位字符（且要求为英文字母、数字或标点）寻找并播放音频。因此为了成功播放音频，您需要修改音频文件名称为特定格式（英文字母、数字或标点组成的四位字符）。
下面是一些例子，希望能够帮助您更好地了解如何修改文件名。左侧为原文件名，右侧为修改后可用的文件名称。

龙的传人.mp3 --------------> ldcr.mp3 
改革春风吹满地.mp3 ---------> ggcf.mp3
happy birthday.mp3 ---------> M001.mp3 

文件名修改完成后，就可以通过慧编程中的积木块来播放自定义音频了。

4. 播放自定义音频
慧编程有两个积木块被设计用来播放自定义音频文件：
“第（1）个扬声器 播放自定义音频（填写你的自定义音频文件名称）”
“第（1）个扬声器 播放自定义音频（填写你的自定义音频文件名称）直到结束”

例如：
“第（1）个扬声器 播放自定义音频（ldcr）”//即执行第一个扬声器播放文件名为 ldcr 的自定义音频

如何恢复扬声器？
错误的操作可能会损害扬声器模块原本的预置音效库，导致预置音效无法正常播放。您可以访问链接【www.makeblock.com/gitbook/mbit/speaker/hardware】获得更多帮助。




——————————————————————————English———————————————————————————

Welcome! The mbit Speaker module is here to be explored.   
The Speaker module provides a 16M of storage which enables users to store and play MP3 files.

How to use the module?
1. Connect the module to your computer
Use a Micro USB cable to connect the Speaker module (Micro USB port) to your computer (USB-typeA port). After the successful connection, you will see the disc automatically listed on the computer. You can just open the disc to check what files are stored in the Speaker module.

2. Store custom audio files
To store a custom audio file, you only need to drag the file into the disc. 
Note: The module has a limited storage so it might fail to store a file when the file is too large. In this case, we recommend that you downsize the file before you try again. 

3. 【IMPORTANT】Modify the file name
Due to the hardware constraint, the Speaker module can only identify an audio file based on the first 4 characters of its file name (only English letters, numbers or punctuation marks should be included). In order to store your file successfully, you need to give the file a proper name (4 characters made up of English letters, numbers or punctuation marks). 
The examples below might help you better understand how to rename your files. The previous  names are on the left and on the right are the revised names .

twinkling star.mp3 -------------->twst.mp3
Mary has a little lamb.mp3 ---------> mhll.mp3
happy birthday.mp3 ---------> M001.mp3

After you finish modifying the file name, you can use coding blocks in mBlock to play the audio file. 

4. Play custom audio files
In mBlock, you can find two coding blocks that are used to play audio files:
“speaker (1) plays custom audio file (enter the file name here)”
“speaker (1) plays custom audio file (enter the file name here) until done”

For example:
The block“speaker (1) plays custom audio file (mhll)”//programs the speaker 1 to play an audio file named "mhll". 

How to restore the Speaker module?
Improper operations might cause damage to the module's built-in sound library, as a result of which the module may fail to output those pre-installed sounds. For more details in terms of how to restore the Speaker module, visit【www.makeblock.com/gitbook/mbit/speaker/hardware】.
